package javaCode.chapter09.codeblock_;

public class CodeBlockDetail03 {
    public static void main(String[] args) {

        new BBB();
    }
}

class AAA{

    static {
        System.out.println("AAA的静态代码块...");
    }

    public AAA() {
        //(1) super
        //(2) 调用本类的普通代码块
        System.out.println("AAA() 构造器被调用...");
    }
}

class BBB extends AAA{
    static {
        System.out.println("BBB的静态代码块...");
    }

    {
        System.out.println("BBB的普通代码块...");
    }

    public BBB() {
        //(1) super
        //(2) 调用本类代码块
        System.out.println("AAA() 构造器被调用...");
    }
}
